Skip to content

gh-140641: Break out of inittab search on match#140642

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
itamaro:gh-140641-inittab-search-break
Oct 27, 2025
Merged

gh-140641: Break out of inittab search on match#140642
serhiy-storchaka merged 1 commit into
python:mainfrom
itamaro:gh-140641-inittab-search-break

Conversation

@itamaro

@itamaro itamaro commented Oct 26, 2025

Copy link
Copy Markdown
Contributor

The search loop is needlessly exhaustive.
We can break out of the search loop once we find a match.

The search loop is needlessly exhaustive
We can break out of the search loop once we find a match

@serhiy-storchaka serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@serhiy-storchaka serhiy-storchaka merged commit e8b5cb8 into python:main Oct 27, 2025
51 checks passed
StanFromIreland pushed a commit to StanFromIreland/cpython that referenced this pull request Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants